package com.ikunikun.service;

import com.ikunikun.dto.EmployeeDTO;
import com.ikunikun.dto.EmployeeLoginDTO;
import com.ikunikun.dto.EmployeePageQueryDTO;
import com.ikunikun.entity.Employee;
import com.ikunikun.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

	/**
	 * 新增用户
	 * @param employeeDTO
	 */
    void save(EmployeeDTO employeeDTO);

	/**
	 * 分页查询员工
	 * @param dto
	 * @return
	 */
	PageResult pageQuery(EmployeePageQueryDTO dto);

	/**
	 * 启用或禁用员工转态
	 * @param status
	 * @param id
	 */
	void startOrStop(Integer status, Long id);

	/**
	 * 根据id查询用户
	 * @param id
	 * @return
	 */
	EmployeeDTO getById(Long id);

	/**
	 * 更改员工信息
	 * @param employeeDTO
	 */
	void update(EmployeeDTO employeeDTO);
}
